using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using taxi_sovereign.model;

namespace taxi_sovereign.unittest
{
    [TestFixture]
    class TestVehicle
    {
        Vehicle testVeh = new Vehicle(); 
        Passenger testp1 = new Passenger();
        Passenger testp2 = new Passenger();
        [Test]
        public void IsNotFullTest()
        {
            testVeh = new Vehicle();
            testVeh.MaxPassengers = 0;
            Assert.AreEqual(false, testVeh.IsNotFull(), "Vehicle with 0 max passengers");
        }
        [Test]
        public void AddPassTest()
        {
            testVeh = new Vehicle();
            testVeh.MaxPassengers = 1;
            testVeh.AddPass(testp1);
            Assert.AreEqual(false, testVeh.IsNotFull(), "1 paasenger added to vehicle with maxPPL=1");
        }
        [Test]
        public void DelPassTest()
        {
            testVeh = new Vehicle();
            testVeh.MaxPassengers = 1;
            testVeh.AddPass(testp1);
            testVeh.DelPass(testp1);
            Assert.AreEqual(true, testVeh.IsNotFull(), "1 paasenger deleted from vehicle with maxPPL=1");
        }
    }
}
